package cn.enilu.flash.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class HelpTaskDto {
    private Long id;
    private Integer classifyId;
    @NotNull(message = "标题不能为空")
    private String title;
    private Integer num;
    private String sketch;
    private BigDecimal price;
    private Integer timeLimit;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date endTime;
    private Integer cityId;
    // 步骤列表
    private List<TaskStepDto> taskStepList;
    // 凭证列表
    private List<TaskProofDto> taskProofList;
}
